package com.lc.luzhengtang.adapter;

import android.view.View;
import android.view.ViewGroup;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.lc.luzhengtang.R;
import com.lc.luzhengtang.bean.SearchBean;
import com.zcx.helper.scale.ScaleScreenHelperFactory;

import java.util.List;

/**
 * 文 件 名: NewsListAdapter
 * 创 建 人: zhangyu
 * 创建日期: 16/12/24 19:55
 * 邮   箱: yuanchong121@gmail.com
 * 修改时间：
 * 修改备注：
 */
public class SearchStaticListAdapter2 extends BaseQuickAdapter<SearchBean.DataBeanX.DataBean, BaseViewHolder> {
    public SearchStaticListAdapter2(List<SearchBean.DataBeanX.DataBean> data) {

        super(R.layout.item_classfiy_detail, data);
    }


    @Override
    protected void convert(BaseViewHolder helper, final SearchBean.DataBeanX.DataBean item) {
        ScaleScreenHelperFactory.getInstance().loadView((ViewGroup) helper.convertView);
        helper.setText(R.id.text_nicheng, item.getTitle());
        View view = helper.getConvertView();

        view.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
        /*        Intent intent = new Intent();
                intent.putExtra("goods_id", item.getId() + "");
                intent.putExtra("img_url", item.getPicurl());
                intent.setClass(mContext, ShopDetailActivity.class);
                mContext.startActivity(intent);*/
            }
        });

    }


}
